package com.zyong.design.pattern.visitor.case1;

/**
 * @program: zyong-design-pattern
 * @ClassName: ConcreteElementA
 * @author: zyong
 * @create: 2024-03-28 23:21
 */
public class ConcreteElementA implements Element {
    private String name;

    public ConcreteElementA(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.operate(this);
    }
}
